package com.zx.core.constant;

import java.util.concurrent.TimeUnit;

/**
 * <p>
 * description: 缓存常量 <br>
 * create: 2025-11-19
 * </p>
 *
 * @author zhou xun
 */
public class CacheConstants {
    /**
     * 字典数据缓存键前缀
     */
    public static final String DICT_DATA_KEY = "dict_data:";

    /**
     * 字典类型缓存键前缀
     */
    public static final String DICT_TYPE_KEY = "dict_type:";
    
    /**
     * 默认缓存过期时间（分钟）
     */
    public static final int DEFAULT_EXPIRE_MINUTES = 30;
    
    /**
     * 默认缓存过期时间单位
     */
    public static final TimeUnit DEFAULT_EXPIRE_TIME_UNIT = TimeUnit.MINUTES;
}